package org.itboys.trade.service.mysql;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.itboys.trade.dao.AdminAmountMapper;
import org.itboys.trade.entity.mysql.AdminAmount;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminAmountService {
	
	@Autowired
	private AdminAmountMapper mapper;
	
	 public  List<AdminAmount> list(Map<String, Object> search){
		 return mapper.list(search);
	 };
	 public  AdminAmount getById(long id){
		 return mapper.getById(id);
	 };
	 public  AdminAmount getByUserIdAndType(@Param("objId")Long objId,@Param("objType")Integer objType){
		 return mapper.getByUserIdAndType(objId, objType);
	 };
}
